<?php

namespace zhq\api\v1;

use zhq\Request;

class Weixin extends Request
{

    //获取公众号历史发文
    public function post_history(array $data=[]){
        $this->type='POST';
        $this->path='/api/weixin/articles';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }

    //获取文章正文（带html文章格式）
    public function article_html(array $data=[]){
        $this->type='POST';
        $this->path='/api/weixin/article/detail';

        $this->data= array_merge($this->data,$data);
        return $this->exec();
    }
}